package com.huike.clues.mapper;

import com.huike.clues.domain.TbCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 93238
* @description 针对表【tb_course(课程管理)】的数据库操作Mapper
* @createDate 2023-10-12 06:35:46
* @Entity com.huike.clues.domain.TbCourse
*/
public interface TbCourseMapper extends BaseMapper<TbCourse> {
    /**
     * 查询课程管理
     * @param courseId
     * @return
     */
    TbCourse selectTbCourseById(Long courseId);

    List<TbCourse> selectTbCourseList(TbCourse tbCourse);

    void addCourse(TbCourse tbCourse);

    @Select("select * from tb_course where id = #{id}")
    TbCourse getCourseById(Integer id);

    @Select("select * from tb_course where subject = #{subject}")
    List<TbCourse> getListselect(TbCourse query);

    void updateCourse(TbCourse tbCourse);
}




